<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<LINK href="../css/bootstrap.css" rel=stylesheet>
		<title>商店资料</title>
	</head>
	<body>
		<br>
		<div class="span9 offset1"">
			<div>
				<img src="../images/hy1.gif" width="18" height="18">
				<h4>
					商店资料
				</h4>
			</div>
			<div>
				<hr>
			</div>
			<form name="information" action="Shop!modify" method="post"
				enctype="multipart/form-data">
				<table width="800" border="0" cellpadding="0" cellspacing="0"
					id="testTable">
					<tr>
						<td align="right" width="150px"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							店铺名 :
						</td>
						<td align="left"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							<input name="shop.shopName" type="text" id="shop.name"
								value="${shop.shopName}" />
						</td>
					</tr>
					<tr>
						<td align="right" width="150px"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							邮箱 :
						</td>
						<td align="left"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							<input value="${shop.email}" name="shop.email" type="text"
								id="shop.email" />
						</td>
					</tr>
					<tr>
						<td align="right" width="150px"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							联系电话 :
						</td>
						<td align="left"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							<input value="${shop.phone}" name="shop.phone" type="text"
								id="shop.phone" />
						</td>
					</tr>
					<tr>
						
						<td align="right" width="150px"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							<input type="hidden" name="shop.address.id" value="${shop.address.id }"/>
							所在地市区 :
						<td>
							<select name="shop.address.province">
								<option value="广东省">广东省</option>
							</select>
							<select name="shop.address.city">
								<option value="广州市">广州市</option>
							</select>
							<select name="shop.address.area">
								<option value="天河区">天河区</option>
								<option value="白云区">白云区</option>
								<option value="荔湾区">荔湾区</option>
								<option value="越秀区">越秀区</option>
								<option value="南沙区">南沙区</option>
								<option value="萝岗区">萝岗区</option>
								<option value="番禺区">番禺区</option>
								<option value="黄埔区">黄埔区</option>
								<option value="海珠区">海珠区</option>
								<option value="海珠区">花都区</option>
								<option value="增城市">增城市</option>
								<option value="从化市">从化市</option>
							</select>
						</td>
					</tr>
					<tr>
						<td align="right" width="150px"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							街道地址 :
						</td>
						<td align="left"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							<input value="${shop.address.stress}" name="shop.address.stress"
								type="text" id="address.stress" />
						</td>
					</tr>
					<tr>
						<td align="right" width="150px"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							LOGO :
						</td>
						<td align="left"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							<img src="${shop.logoPath }" width="146" height="82">
						</td>
					</tr>
					<tr>
						<td align="right" width="150px"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							LOGO上传 :
						</td>
						<td align="left"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							<input type="file" name="shopUpload" id="shop.logo">
							<span>&nbsp;仅支持jpg、gif格式，大小不得超过300K</span>
						</td>
					</tr>
					<tr>
						<td align="right" width="150px"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							简介 :
						</td>
						<td align="left"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							<textarea name="shop.profile" id="shop.profile" rows=5>${shop.profile }</textarea>
						</td>
					</tr>
					<tr>
						<td align="right" width="150px"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
						</td>
						<td align="left"
							style="padding-left: 5px; padding-top: 4px; padding-bottom: 4px; padding-right: 18px;">
							<input type="submit" name="Submit" value="保存信息" class="btn-info">
							&nbsp;&nbsp;&nbsp;
							<input type="reset" name="Submit2" value="重置" class="btn-info">
						</td>
					</tr>
					<tr>
						<td></td>
						<td>
							<font size="5px" color="#FF0000">${shopMsg}</font>
						</td>
					</tr>
				</table>
			</form>
		</div>
	</body>
</html>
